function [dir_ratio, ori_ratio] = CalcdF_FImages (dir_dF_sm, ori_dF_sm, base_sm)

% calculate dF/F images to each direction and orientation.

dim = size(dir_dF_sm);
ndir = dim(3);
nori = ndir/2;

dir_ratio = zeros(dim(1), dim(2), ndir);
ori_ratio = zeros(dim(1), dim(2), nori);


for i = 1:ndir
    dir_ratio(:,:,i) = dir_dF_sm(:,:,i) ./ base_sm;
end
for i=1:nori
    ori_ratio(:,:,i) = ori_dF_sm(:,:,i) ./ base_sm;
end
